Magnetic Polarity Detector Circuit Using Hall Effect Sensor